class RdafController < ApplicationController
  
  def home
    case Goldberg.user.role_id
    when 4 then
      redirect_to :controller => 'analista', :action => 'index'
    when 10 then
      redirect_to :controller => 'certificador', :action => 'index'
    when 14 then
      redirect_to :controller => 'pool', :action => 'index'
    when 13 then
      redirect_to :controller => 'certificacao', :action => 'index' 
    when 5 then
      redirect_to :controller => 'desenvolvedores', :action => 'home'
    when 11 then
      redirect_to :controller => 'banco', :action => 'index'
    when 12 then
      redirect_to :controller => 'suporte', :action => 'index'
    when 9 then
      redirect_to :controller => 'tecnico', :action => 'index'
    when 8 then
      redirect_to :controller => 'producao', :action => 'index'
    when 7 then
      redirect_to :controller => 'gerente', :action => 'index'
    else
      redirect_to :controller => 'requisicoes', :action => 'list'
    end
  end
  
end